<?php


namespace App\Http\Controllers\Mp;


use App\Http\Controllers\Controller;
use App\Service\OCR;
use App\Utils\Result;
use Illuminate\Http\Request;

class OCRController extends Controller
{
    public function getOCRInfo(Request $request)
    {
        $url = $request->input('url');

        $result = OCR::main($url);

        return Result::success($result);
    }
}
